package com.luchao.back.service;

import com.luchao.back.pojo.Brands;
import com.luchao.back.pojo.Color;
import com.luchao.back.pojo.Shoes;
import com.luchao.back.pojo.Types;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface ShoesService {

    List<Shoes> getShoesByPage(int pageNum, int pageSize, List<Integer> sizeids, List<Integer> sbids, List<Integer> stids, List<Integer> scids, List<String> sgenders);

    long getShoesCount(List<Integer> sizeids, List<Integer> sbids, List<Integer> stids, List<Integer> scids, List<String> sgenders);

    List<Types> getShoesTypesByPage(int pageNum, int pageSize);

    List<Brands> getShoesBrandsByPage(int pageNum, int pageSize);

    List<Color> getShoesColorsByPage(int pageNum, int pageSize);

    List<String> getShoesProducerByPage(int pageNum, int pageSize);

    boolean editShoes(Shoes shoes);

    boolean batchChangeState(List<Shoes> list);

    List<Shoes> getAllShoes();

    int checkShoes(String sname);

    int checkSnum(String snum);

    boolean deletePhoto(String path, Integer sid, String fileName);

    boolean addShoes(Shoes shoe);

    Shoes getShoesById(Integer sid);

    List<Shoes> getShoesByBrands(Integer bid);

    List<Shoes> getShoesTop(String sgender, String topWay);

}
